<layout name='layout' />

<div class="admin-main">
	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
		<legend>【<{$name}>】权限设置</legend>
	</fieldset>

	<form id="ajaxForm" class="layui-form" method="post" action="<{:U('Group/access')}>">

		<volist name="list" id="vo">
		<fieldset class="layui-elem-field auth">
			<legend><input type="checkbox" name="mod[]" value="<{$vo.id}>-<{$vo.level}>-<{$vo.pid}>" <php>if(in_array($vo['id'],$nodeArr)) echo 'checked';</php> title="<{$vo.title}>"/></legend>
			<div class="action">	
				<volist name="vo['child']" id="f">
			    <li>			    
			    	<input type="checkbox" name="mod[]" value="<{$f.id}>-<{$f.level}>-<{$f.pid}>" <php>if(in_array($f['id'],$nodeArr)) echo 'checked';</php> title="<{$f.title}>"/>	
				</li>
			    </volist>				
			</div>
		</fieldset>
		</volist>

		<div class="layui-form-item">
			<div class="layui-input-block" style="margin-left:0">
				<button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
				<button type="button" class="layui-btn layui-btn-primary" onclick="window.history.go(-1)">返回</button>
			</div>
		</div>
		<input type="hidden" name="role_id" value="<{$id}>" />
	</form>
</div>